if (typeof String.prototype.startsWith != 'function') {
  // see below for better implementation!
  String.prototype.startsWith = function (str){
    return this.indexOf(str) == 0;
  };
}

function ShowGameMessage(msg) {
    var msgElm = document.getElementById("GameMessage");
    msgElm.innerHTML = '<a class="modern embossed-link">' + msg + '</a>';
    setTimeout(function(){ msgElm.innerHTML = ""; },ticker);
}